package datatypes;

import java.util.Vector;

public class HostInformation {

	int ID;
	int xPos;
	int yPos;
	boolean active;
	Vector<String> services;
	
	public HostInformation (int ID , int xPos, int yPos, boolean active, Vector<String> services){
		this.ID = ID;
		this.xPos = xPos;
		this.yPos = yPos;
		this.active = active;
		this.services = services;
	}
	
	public String getID(){
		return this.ID + "";
	}
	
	public int getXPos(){
		return xPos;
	}

	public int getYPos (){
		return yPos;
	}
	
	public boolean isActive(){
		return this.active;
	}
	
	public boolean hasServices(){
		return this.services != null;
	}
	
	public void setServices(Vector<String> newServ){
		this.services = newServ;
	}
	
	public void setActive (boolean state){
		this.active = state;
	}

	public Vector<String> getServices() {
		return this.services;
	}
}
